package cn.tedu.order.management.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;


@Data
@TableName("order_item")
public class OrderItem implements Serializable {


    /*id*/
    @TableId(type = IdType.AUTO)
    private Long id;

    /*订单id*/
    private Long orderId;

    /*商品id*/
    private Long goodsId;

    /*商品标题*/
    private String title;

    /*商品数量*/
    private Integer num;

    /*商品单价*/
    private BigDecimal unitPrice;

    /*创建时间*/
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "gmt_create", fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    /**
     * 数据最后修改时间
     */
    /*@ApiModelProperty(value = "修改时间")
    @TableField(value = "gmt_modified", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;*/



}
